from ctypes import *
import time
libc = cdll.LoadLibrary("libc.so.6")
libm = cdll.LoadLibrary("libm.so.6")
libc.printf("treta %f\n", libm.sqrt(c_double(2.2)))

librap = cdll.LoadLibrary("./rapido2.so")
t1 = time.clock()
a = librap.rapido(c_int(10000))
t2 = time.clock()
print t2-t1
